package com.atguigu.yygh.common.enums;

import lombok.Getter;

/**
 * @author 孔德成
 * @slogan 致敬大师，致敬未来的你
 * @date 2021/9/14 6:48 下午
 * @desc 消息队列枚举配置
 */
@Getter
public enum QueueEnum {
    /**
     * 更新号源队列
     */
    QUEUE_ORDER_SUCCESS("yygh.order.direct", "yygh.order.success", "yygh.order.success"),
    /**
     * 取消订单更新号源
     */
    QUEUE_ORDER_CANCEL("yygh.order.direct", "yygh.order.cancel", "yygh.order.cancel"),
    /**
     * 短信通知队列
     */
    QUEUE_MSM_SUCCESS("yygh.msm.direct", "yygh.msm.success", "yygh.msm.success"),
    /**
     * 就诊提醒短信队列
     */
    QUEUE_MSM_PATIENT("yygh.msm.direct", "yygh.msm.patient.tip", "yygh.msm.patient.tip");

    /**
     * 交换器名称
     */
    private final String exchange;
    /**
     * 队列名称
     */
    private final String name;
    /**
     * 路由键
     */
    private final String routeKey;

    QueueEnum(String exchange, String name, String routeKey) {
        this.exchange = exchange;
        this.name = name;
        this.routeKey = routeKey;
    }
}
